@echo off
dropdb -q -h localhost -U "postgres" CallCenter
createdb -q -h localhost -U "postgres" CallCenter
IF %ERRORLEVEL% EQU 0 (
	psql -q -d CallCenter -h localhost -U "postgres" -f callcenter.sql
) ELSE (
	echo An Error occurred!
	PAUSE
)